#!/bin/sh

bspc monitor -d terminal browser file music chat code steam vm

bspc config border_width           2
bspc config focus_follows_pointer  false
bspc config initial_polarity       spiral
bspc config window_gap             5

bspc config normal_border_color   "#9B5C5A"
bspc config focused_border_color  "#D2442F"
bspc config presel_feedback_color "#000000"

bspc config split_ratio          0.5
bspc config borderless_monocle   true
bspc config gapless_monocle      true
bspc config single_monocle       false

bspc config pointer_action1 move
bspc config pointer_action2 none
bspc config pointer_action3 resize_corner

bspc rule -a Krita desktop='^7' state=floating follow=on
bspc rule -a ranger desktop='^3' state=monocle follow=on focus=on
bspc rule -a Google-chrome desktop='^2' private=on
bspc rule -a Steam state=floating desktop='^7' center=true
bspc rule -a 'Pale moon' desktop='^2'
bspc rule -a TelegramDesktop desktop='^5' state=monocle
bspc rule -a Sxiv state=floating center=true
bspc rule -a webcam sticky=on locked=true
bspc rule -a mpv state=floating
bspc rule -a Zathura state=floating center=true

hsetroot -fill $HOME/git/dotfiles/themes/current/wallpaper.* -blur 5 2>/dev/null

killall -9 sxhkd dunst flameshot polybar compton

xsetroot -cursor_name left_ptr &
sxhkd &
dunst &
xset r rate 300 75 &
flameshot &
polybar -c $HOME/git/dotfiles/themes/current/polybar/config -q top &
polybar -c $HOME/git/dotfiles/themes/current/polybar/config -q bottom &
compton -b --respect-prop-shadow

notify-send "Loaded" "Configuração carregada"
